﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="CJOModify.aspx.cs" Inherits="Ewts.Storage.CJOModify" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/Css/tab2.css" rel="Stylesheet" type="text/css" />
    <style type="text/css">
        td
        {
            height: 26px;
        }
        .input2 
        {
	        width: 154px;
	        margin-left: 5px;
        }
    </style>
     
   
   <script type="text/javascript">
        function GetCompDate(date1, date2) {
            var year1 = date1.getFullYear();
            var month1 = date1.getMonth();
            var day1 = date1.getDate();
            var year2 = date2.getFullYear();
            var month2 = date2.getMonth();
            var day2 = date2.getDate();
            if (year1 == year2 && month1 == month2 && day1 == day2) {
                return 0;
            }
            else if (year1 > year2) {
                return -1;
            }
            else if (year1 < year2) {
                return 1;
            }
            else if (month1 > month2) {
                return -1;
            }
            else if (month1 < month2) {
                return 1;
            }
            else if (day1 > day2) {
                return -1;
            }
            else if (day1 < day2) {
            return 1;
            }

        }

        $(document).ready(function () {
            $(".date1").datepicker({
                "dateFormat": "yy-mm-dd"
            });
            $(".date2").datepicker({
                "dateFormat": "yy-mm-dd"
            });

            $(".date2").change(function () {
                var date1 = new Date(Date.parse($(".date1").val().replace("-", "/")));
                var date2 = new Date(Date.parse($(".date2").val().replace("-", "/")));
                if (GetCompDate(date1, date2) == -1) {
                    $("#notice1").html("通知日期大于收货日期");
                }
                else {
                    $("#notice1").html("");
                }
            });


            $(".date1").change(function () {
                var date1 = new Date(Date.parse($(".date1").val().replace("-", "/")));
                var date2 = new Date(Date.parse($(".date2").val().replace("-", "/")));
                if (GetCompDate(date1, date2) == -1) {
                    $("#notice1").html("通知日期大于收货日期");
                }
                else {
                    $("#notice1").html("");
                }
            });


            $("input[class='tyz']").change(function () {
               
                if ($(this).val() == "直销") {
                    $("#notice2").html("你选择的是直销");
                    $("input[class='radbussinesstype']").each(function () {
                        if ($(this).val() == "无") {
                            
                            $(this).attr("disabled", "disabled");
                            $(this).removeAttr("checked");
                        }
                        else {
                            $(this).removeAttr("disabled");

                        }

                    });
                }
                else if ($(this).val() == "退运") {
                    $("#notice2").html("你选择的是退运");
                    $("input[class='radbussinesstype']").each(function () {
                        if ($(this).val() == "无") {
                            $(this).attr("disabled", "disabled");
                            $(this).removeAttr("checked");
                        }
                        else {
                            $(this).removeAttr("disabled");

                        }

                    });
                }
                else if ($(this).val() == "无") {
                    $("input[class='radbussinesstype']").each(function () {
                        if ($(this).val() == "无") {
                            $(this).attr("disabled", "disabled");
                            $(this).removeAttr("checked");
                        }
                        else {
                            $(this).removeAttr("disabled");

                        }

                    });
                }

                else if ($(this).val() == "服务") {
                    $("#notice2").html("你选择的是服务");
                    $(".hidbussinesstype").val("无");
                    $("input[class='radbussinesstype']").each(function () {
                        if ($(this).val() == "无") {
                            $(this).attr("checked", "checked");
                        }
                        else
                            $(this).attr("disabled", "disabled");
                    });
                }
                else if (($("#notice2").html().indexOf("退运") > 0)
                    || ($("#notice2").html().indexOf("直销") > 0)
                    || ($("#notice2").html().indexOf("服务") > 0)) {
                    $("#notice2").html("");
                }
                $(".hidtyz").val($(this).val());
            });

            $(".radbussinesstype").click(function () {
                var bussvalue = $(this).attr("checked");
                if (bussvalue == "checked") {
                    $(".hidbussinesstype").val($(this).val());
                }
            });
        });

  
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">

<div class="tab2">

 <h1>收集工作指令</h1>
    <input type="hidden" id="hidLoadID" runat="server" />
    <input type="hidden" id="hidAddID" runat="server" />
    <input type="hidden" id="hidBindLoadID" runat="server" />
    <input type="hidden" id="hidCJOID" runat="server" />

    <table border="0" cellpadding="0" cellspacing="0" class="three2">
        <tr><td><h2>基础信息</h2></td></tr>
     
        <tr>
            <td width="100" align="right">LoadNum：</td>
            <td><asp:TextBox ID="txtLoadNum" CssClass="input" runat="server" Enabled="false" /></td>
            <td width="100" align="right">CJO单号：</td>
            <td><asp:TextBox ID="txtCJO" CssClass="input" runat="server" Enabled="false" /></td>
            <td width="100" align="right">业&nbsp;&nbsp;务&nbsp;&nbsp;员：</td>
            <td><asp:TextBox ID="txtSaleman" CssClass="input" runat="server" Enabled="false" ToolTip="" /></td>

        </tr>
  
        <tr>
            <td width="100" align="right">通知日期：</td>
            <td><asp:TextBox ID="txtNoticeDate" CssClass="date1" runat="server" Enabled="false" /></td>
            <td width="100" align="right">收货日期：</td>
            <td>
                <asp:TextBox ID="txtCollectDate" runat="server" CssClass="date2" Width="80" style="margin-left: 5px;" />
                <asp:TextBox ID="txtCollectTime" runat="server" Width="70" text="0:00" />
            </td>
            <td>
            </td>
            <td style="color:Red;" id="notice2">
            </td>


        </tr>
  
                   <tr>
            <td width="100" align="right" class="one">处理地：</td>
            <td class="one">
                <asp:DropDownList ID="ddlWasteDisposePlace" CssClass="input" runat="server">
                    <asp:ListItem Text="上海" Value="上海"></asp:ListItem>
                    <asp:ListItem Text="北京" Value="北京"></asp:ListItem>
                    <asp:ListItem Text="广州" Value="广州"></asp:ListItem>
                    <asp:ListItem Text="苏州" Value="苏州"></asp:ListItem>
                    <asp:ListItem Text="香港" Value="香港"></asp:ListItem>
                </asp:DropDownList>
                       </td>
            <td width="100" align="right" class="one">归属地：</td>
            <td class="one">
                
                <%--<asp:DropDownList ID="dropBelog" Enabled="false" runat="server">
                    <asp:ListItem>上海</asp:ListItem>
                    <asp:ListItem>北京</asp:ListItem>
                    <asp:ListItem>广州</asp:ListItem>
                    <asp:ListItem>苏州</asp:ListItem>
                </asp:DropDownList>--%>
                       <asp:Label ID="lblBelong" runat="server" Text="归属"></asp:Label>
                       </td>
            <td width="100" align="right" class="one">处理方式</td>
            <td class="one">
                <label><input id="tyzNone" name="tyz" type="radio" class="tyz" value="无" runat="server"/>无</label> 
                <label><input id="tyzTy" name="tyz" type="radio" class="tyz" value="退运" runat="server"/>退运</label> 
                <label><input id="tyzZx" name="tyz" type="radio" class="tyz" value="直销" runat="server"/>直销</label> 
                <label><input id="tyzFw" name="tyz" type="radio" class="tyz" value="服务" runat="server"/>服务</label>
                <input type="hidden" runat="server" value="无" class="hidtyz" id="hidtyz" />
            </td>
        </tr>
        <tr><td><h2>客户信息</h2></td></tr>
        <tr>
            <td width="100" align="right">客户编号：</td>
            <td><asp:TextBox ID="txtCustomerCode" CssClass="input" runat="server" Enabled="false" /></td>
            <td width="100" align="right">公司名称：</td>
            <td><asp:TextBox ID="txtCompany" CssClass="input" runat="server" Enabled="false" /></td>
            <td width="100" align="right">收货地址：</td>
            <td><asp:TextBox ID="txtCollectAddress" CssClass="input" runat="server" /></td>
        </tr>
        <tr>
             <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td align="right">业务类型*</td>
            <td>
                <label><input name="bussinesstype" id="bussDest" class="radbussinesstype" type="radio" value="销毁" runat="server" />销毁</label> 
                <label><input name="bussinesstype" id="bussUsed" class="radbussinesstype" type="radio" value="利用" runat="server" />利用</label> 
                 <label><input name="bussinesstype" id="bussNone" class="radbussinesstype" type="radio" value="无" runat="server" />无</label>
                <input type="hidden" runat="server" class="hidbussinesstype" value="" id="hidbussinesstype" />
            </td>
       </tr>

        <tr>
            <td width="100" align="right">客户联系人：</td>
            <td><asp:TextBox ID="txtCustomerContactor" CssClass="input" runat="server" /></td>
            <td width="100" align="right">客户联系电话：</td>
            <td colspan="3"><asp:TextBox ID="txtCustomerPhoneNum" Width="300px" CssClass="input" runat="server" /></td>  
        </tr>

        <tr><td><h2>收货信息</h2></td></tr>
        <tr>
            <td width="100" align="right">工&nbsp;&nbsp;人&nbsp;&nbsp;数：</td>
            <td><asp:TextBox ID="txtWorkerCount" CssClass="input" runat="server" /></td>
            <td width="100" align="right">预计件数：</td>
            <td><asp:TextBox ID="txtGoodsCount" CssClass="input" runat="server" /></td>
            <td width="100" align="right">货物重量：</td>
            <td><asp:TextBox ID="txtGoodsWeight" CssClass="input" runat="server" /></td>
        </tr>
        <tr>
            <td width="100" align="right">货物描述：</td>
            <td colspan="3"><asp:TextBox ID="txtGoodsInfo" CssClass="input" runat="server" Width="400" /></td>
             </tr>
        <tr><td width="100" align="right">其他费用:</td>
            <td><asp:TextBox ID="txtOtherCost" runat="server"></asp:TextBox></td>
            <td width="100" align="right">结算方式：</td>
            <td>
                 <asp:RadioButton ID="rblPayType1" CssClass="input" runat="server" Text="单次结" GroupName="payType" />
                <asp:RadioButton ID="rblPayType2" CssClass="input" runat="server" Text="多次结" GroupName="payType" />
                <asp:RadioButton ID="rblPayType3" CssClass="input" runat="server" Text="零结" GroupName="payType" />
                <asp:RadioButton ID="rblPayType4" CssClass="input" runat="server" Text="年费" GroupName="payType" />
            </td>
            
        </tr>
        <tr>
            <td width="100" align="right">需要工具：</td>
            <td colspan="5">
                <asp:CheckBox ID="rbTools1" runat="server" Text="太空包" /><asp:TextBox ID="txtTools1" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools2" runat="server" Text="液压秤" /><asp:TextBox ID="txtTools2" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools3" runat="server" Text="封箱带" /><asp:TextBox ID="txtTools3" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools4" runat="server" Text="箱或桶" /><asp:TextBox ID="txtTools4" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools5" runat="server" Text="手推车" /><asp:TextBox ID="txtTools5" runat="server" Width="30" Text="1"></asp:TextBox>，
                <asp:CheckBox ID="rbTools6" runat="server" Text="封　签" /><asp:TextBox ID="txtTools6" runat="server" Width="30" Text="1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">车辆要求：</td>
            <td colspan="5"><asp:TextBox ID="txtVehiRequire" CssClass="input" runat="server" Width="650" /></td>
        </tr>
        <tr>
            <td width="100" align="right">其他要求：</td>
            <td colspan="4"><asp:TextBox ID="txtqt" CssClass="input" runat="server" Width="400" /></td></tr>
        <tr>
            <td width="100" align="right">备注：</td>
            <td colspan="4"><asp:TextBox ID="txtmemo" CssClass="input" runat="server" Width="400" /></td>
         </tr>
        <tr><td><h2>处理要求</h2></td></tr>
        <tr>
            <td width="100" align="right">物料状态：</td>
            <td colspan="3">
                <asp:CheckBox ID="cbMaternRequire1" runat="server" CssClass="input" Text="普通"></asp:CheckBox>
                <asp:CheckBox ID="cbMaternRequire2" runat="server" CssClass="input" Text="高价值"></asp:CheckBox>
                <asp:CheckBox ID="cbMaternRequire3" runat="server" CssClass="input" Text="产权敏感"></asp:CheckBox>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">采样要求：</td>
            <td colspan="3">
                <asp:RadioButton ID="rblSamplingRequire1" CssClass="input" runat="server" Text="无" GroupName="SampReq" Checked="true"></asp:RadioButton>
                <asp:RadioButton ID="rblSamplingRequire2" CssClass="input" runat="server" Text="人工" GroupName="SampReq"></asp:RadioButton>
                <asp:RadioButton ID="rblSamplingRequire3" CssClass="input" runat="server" Text="自动化采样" GroupName="SampReq"></asp:RadioButton>              
            </td>
        </tr>
        <tr>
            <td width="100" align="right">特殊要求：</td>
            <td colspan="6">
                <asp:CheckBox ID="cbPeculiarRequire1" runat="server" CssClass="input" Text="卸货照片"></asp:CheckBox>
                <asp:CheckBox ID="cbPeculiarRequire2" runat="server" CssClass="input" Text="拆解照片"></asp:CheckBox>
                <asp:CheckBox ID="cbPeculiarRequire3" runat="server" CssClass="input" Text="硬件中心"></asp:CheckBox>
                <asp:CheckBox ID="cbPeculiarRequire4" runat="server" CssClass="input" Text="正常处理"></asp:CheckBox>
                <asp:CheckBox ID="cbPeculiarRequire5" runat="server" CssClass="input" Text="临时存放"></asp:CheckBox>
                <asp:CheckBox ID="cbPeculiarRequire6" runat="server" CssClass="input" Text="客户监督破坏"></asp:CheckBox>                
            </td>
        </tr>
        <tr>
            <td width="100" align="right">其他要求：</td>
            <td colspan="4"><asp:TextBox ID="txtOtherRequire" CssClass="input" runat="server" Width="400" /></td>
        </tr>

        <tr><td><h2>废弃物信息</h2></td></tr>
        
        <tr>
            <td width="100" align="right">废弃物类型：</td>
            <td colspan="3">
                <asp:CheckBox ID="cbWasteName1" runat="server" CssClass="input" Text="一般废弃物"></asp:CheckBox>
                <%--<asp:CheckBox ID="cbWasteName2" runat="server" CssClass="input" Text="一般固体危险废弃物"></asp:CheckBox>
                <asp:CheckBox ID="cbWasteName3" runat="server" CssClass="input" Text="一般液体危险废弃物"></asp:CheckBox>--%>
                <asp:CheckBox ID="cbWasteName5" runat="server" CssClass="input" Text="固体危险废弃物"></asp:CheckBox><br />
                <asp:CheckBox ID="cbWasteName4" runat="server" CssClass="input" Text="电子废弃物"></asp:CheckBox>
                <asp:CheckBox ID="cbWasteName6" runat="server" CssClass="input" Text="液体危险废弃物"></asp:CheckBox>
            </td>
        </tr>
        <tr>           
            <td width="100" align="right">&nbsp;</td>
            <td>
            </td>
            <td align="center"><asp:Button CssClass="button1" runat="server" ID="btnSubmit" Text="修改" onclick="btnSubmit_Click" /></td> 
        </tr>
        </table>
</div>

   
</asp:Content>